package com.ep.thirdPlatformProject.oa.entity;

import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * oa组织/部门实体
 *
 * @author Karl
 * @date 2024/06/11
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Accessors(fluent = true)
public class OAOrgEntity {

    private String action;

    private Integer isCompany;


    /**
     * 部门负责人可能存在多个
     */
    private String leaderCode;

    /**
     * 编码
     */
    private String code;


    /**
     * 简称
     */
    private String shortname;


    /**
     * 全称
     */
    private String fullname;


    /**
     * 组织编码
     */
    @XmlElement(name = "org_code")
    private String org_code;


    /**
     * 父组织编码
     */
    @XmlElement(name = "parent_code")
    private String parent_code;


    /**
     * 封存和解封，canceled=0封存，canceled=1解封
     */
    private Integer canceled;

    /**
     * 顺序
     */
    private Integer order;

}
